package com.warm.demo.convert;

import com.warm.demo.api.dto.TestTreeDto;
import com.warm.demo.api.vo.TestTreeVo;
import com.warm.demo.domain.TestTree;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 测试树对象转换器
 *
 * @author warm
 */
@Mapper
public interface TestTreeC {

    TestTreeC testTreeC = Mappers.getMapper(TestTreeC.class);

    TestTree convert(TestTreeDto dto);

    TestTreeVo convert(TestTree entity);

}
